package com.yingma.common.controller;

import com.yingma.common.util.AjaxResult;
import com.yingma.system.entity.JcVehicleHead;
import com.yingma.system.service.JcVehicleHeadService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * (JcVehicleHead)表控制层
 *
 * @author makejava
 * @since 2020-04-02 17:20:00
 */
@RestController
@RequestMapping("jcVehicleHead")
public class JcVehicleHeadController {
    /**
     * 服务对象
     */
    @Resource
    private JcVehicleHeadService jcVehicleHeadService;

    /**
     *
     * @param code
     * @param pageNum
     * @param PageSize
     * @return
     */
    @ApiOperation("查询车头信息")
    @PostMapping("searchVehicleHead")
    public AjaxResult selectOne(@RequestParam("code") String code, @RequestParam("pageNum") Integer pageNum, @RequestParam("pageSize") Integer PageSize) {
        List<JcVehicleHead> list= jcVehicleHeadService.queryby(code, pageNum, PageSize);
        return AjaxResult.success(list);
    }

}
